/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/pages/layout/Layout'

const superAdmin='superadmin'
const ordinary='ordinary'
const editor='editor'

const adminRouter = {
  path: '/admin',
  component: Layout,
  redirect: '/admin/index',
  alwaysShow: true, // will always show the root menu
  meta: {
    title: 'admin',
    icon: 'lock',
    roles: [superAdmin] // you can set roles in root nav
  },
  children: [
    {
      path: 'index',
      component: () => import('@/pages/admin/index'), //异步加载
      name: 'adminIndex',
      meta: { title: 'adminIndex', noCache: true }
    }
  ]
}


export default adminRouter
